package day12;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class CalcTest2 {
    public static final Logger Log=
            LoggerFactory.getLogger("day12.CalcTest2");


    public static void main(String[] args)   {
        Calc c=new Calc();
        Log.debug("开始计算了。。。");
        Log.debug("准备输入了");
        Scanner in=new Scanner(System.in);
        try {
            Log.info("请输入a和b两个整数：");
            int a=in.nextInt();
            int b=in.nextInt();
            int s1 =   c.div(a, b);
            Log.info("shang ="+s1);
        } catch (Exception e) {
            Log.error("出错了",e);
        }

    }
}
